<template>
	<view class="container">
		<tab-bar :currentPage="2"></tab-bar>
		
		<view class="info radius shadow">
			<view class="top-title flex-center">
				我的
			</view>
			<view class="main flex-between">
				<u-avatar :src="src"  class="avatar flex-center" size="200"></u-avatar>
				<view class="user-name">
					<view class="name">
						用户昵称
					</view>
				</view>
			</view>
		</view>
		
		<view class="card-item">
			<user-card :icon="`kefu-ermai`" :content="1231"></user-card>
			<user-card :icon="`chat`" :content="1231"></user-card>
			<user-card :icon="`order`" :content="1231"></user-card>
			<user-card :icon="`share`" :content="1231"></user-card>
		</view>
	</view>
</template>

<script>
	import userCard from "../../components/user-card.vue"
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		},
		components:{
			userCard
		}
	}
</script>

<style lang="scss">
.container {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	
	.info {
		margin-top: 30rpx;
		width: 85vw;
		height: 30vh;
		
		.top-title {
			height: 30px;
			color: white;
			background-color: rgb(7, 69, 163);
			border-radius: 15px 15px 0 0;
		}
		
		.avatar {
			margin-top: 50rpx;
			width: 130px;
			height: 130px;
		}
		.user-name {
			display: flex;
			justify-content: center;
			align-items: center;
			flex-direction: column;
			margin-top: 50rpx;
			width: 130px;
			height: 130px;
			font-size: 40rpx;
		}
	}
}
</style>
